<?php
namespace app\index\command;

use think\console\Command;
use think\console\Input;
use think\console\input\Option;
use think\console\Output;

class Epcmessage extends Command
{
    protected function configure()
    {
        $this->setName('epcmessage')->setDescription('C++程序调用此接口上报EPC串口消息')->setAliases(['epc'])
            ->addOption('msg','m',Option::VALUE_OPTIONAL,'串口消息');
    }

    protected function execute(Input $input, Output $output)
    {
        $msg = $input->getOption('msg');
        dta($msg,"CLI入口收到[EPC]消息");
    }
}